<include file="head"/>
                <div class="m-table-box">
                    <!-- <div class="pay-method clearfix">
                        <ul>
                            <li class="active"><a href="password.html">修改登陆密码</a></li>
                        </ul>
                    </div> -->
                    <div class="form-box mt">
                        <form action="" method="get">
                            <p>请认真填写下列表单</p>
                            <div class="form-item clearfix">
                                <div class="form-item-l">原始密码：</div>
                                <div class="form-item-r">
                                    <input name="o_pwd" id="o_pwd" type="password" class="form-input">
                                </div>
                            </div>
                            <div class="form-item clearfix">
                                <div class="form-item-l">新密码：</div>
                                <div class="form-item-r">
                                    <input name="n_pwd" id="n_pwd" type="password" class="form-input">
                                </div>
                            </div>
                            <div class="form-item clearfix">
                                <div class="form-item-l">确认新密码：</div>
                                <div class="form-item-r">
                                    <input name="ag_n_pwd" id="ag_n_pwd" type="password" class="form-input">
                                </div>
                            </div>
                            <div class="form-button" onclick="doForm()"><a href="javascript:void(0);">确认提交</a></div>
                        </form>
                    </div>
                </div>
            </div>
        </div> 
        <script src="__HOME_CSS__/agent/js/jquery-1.js"></script>
        <!-- <script src="__HOME_CSS__/js/socket.io.js"></script>
        <script src="__HOME_CSS__/js/sendSms.js"></script> -->
        <script src="__HOME_CSS__/agent/js/layer.js"></script>
        <!-- <script src="__HOME_CSS__/js/main.js"></script>
        <script src="__HOME_CSS__/js/index.js"></script> -->
        <script src="__HOME_CSS__/agent/js/ZeroClipboard.js"></script>
        <script src="__HOME_CSS__/agent/js/jquery.browser.js"></script>
        <script type="text/javascript">
            function doForm() {
                var o_pwd = $("#o_pwd").val();
                var n_pwd = $("#n_pwd").val();
                var ag_n_pwd = $("#ag_n_pwd").val();

                if (o_pwd == "" || n_pwd == "" || ag_n_pwd == "") {
                    layer.alert("请填写完整密码！");
                    return false;
                }
                if (n_pwd != ag_n_pwd) {
                    layer.alert("两次新密码输入不一致！");
                    return false;
                }
                $.post("/index.php/Agent/repassword", {
                    LoginPass_1: o_pwd,
                    LoginPass_2: n_pwd,
                    LoginPass_3: ag_n_pwd
                }, function (data) {
                    if (data.status <= 0) {
                        layer.alert(data.info);
                        $("input").val("");
                        return false;
                    } else {
                        layer.alert(data.info);
                        $("input").val("");
                    }
                }, "json");
            }

            function goIndex(){
                window.location.href = "index.html";
            }

            function salfOut(){
                // $.post("/app/member/index/loginOut",{t:Math.random()},function(data){
                //     if(data.status<=0){
                //         layer.alert(data.info);
                //         return false;
                //     }else{
                //         window.location.href="/agent/login.html";
                //     }
                // },"json");
                window.location.href="login.html";
            }
        </script>
    </body>
</html>